package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.util.Date;
import java.util.Date;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 产品参数
 * @author LikeAdmin
 */
@Data
@ApiModel("产品更新参数")
public class ProductUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "产品ID")
    private Integer id;

    @NotNull(message = "categoryid参数缺失")
    @ApiModelProperty(value = "分类ID")
    private Integer categoryid;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "产品名称")
    private String name;

    @NotNull(message = "description参数缺失")
    @ApiModelProperty(value = "产品描述")
    private String description;

    @NotNull(message = "image参数缺失")
    @ApiModelProperty(value = "主图")
    private String image;

    @ApiModelProperty(value = "产品图片集，JSON格式")
    private String images;

    @NotNull(message = "details参数缺失")
    @ApiModelProperty(value = "产品详情")
    private String details;

    @ApiModelProperty(value = "搜索关键词")
    private String keywords;


    @ApiModelProperty(value = "是否热门：0-否，1-是")
    private Integer ishot;

    @ApiModelProperty(value = "是否最新：0-否，1-是")
    private Integer isnew;


    @ApiModelProperty(value = "排序")
    private Integer sort;


    @ApiModelProperty(value = "状态：0-下架，1-上架")
    private Integer status;


    @ApiModelProperty(value = "浏览量")
    private Integer views;

}
